
<%@page import="com.mysql.fabric.xmlrpc.base.Data"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ page import="fy.bean.*,java.util.*,java.io.*" %>  
<%
request.setCharacterEncoding("utf-8");
String title = request.getParameter("title");
int puton = Integer.parseInt(request.getParameter("puton"));
String txtDate = request.getParameter("txtDate");
String filepath = request.getParameter("filepath");
String filename = request.getParameter("filename");
WsmbBean wsmbBean = new WsmbBean();

if(wsmbBean.doAdd(title, filepath, txtDate, puton, filename)){
	response.setCharacterEncoding("utf-8");
	PrintWriter pout = response.getWriter();
	pout.print("true");
	pout.flush();
	pout.close();
}else{
	response.setCharacterEncoding("utf-8");
	PrintWriter pout = response.getWriter();
	pout.print("false");
	pout.flush();
	pout.close();
	//response.sendRedirect("login.html");
};

%>    
